package javawdw.security.util;

import java.lang.reflect.ParameterizedType;

@SuppressWarnings("unchecked")
public abstract class Generic<T> {
	private Class<T> thisClass;

	public Generic() {
		ParameterizedType type = (ParameterizedType) this.getClass().getGenericSuperclass();
		thisClass = (Class<T>) type.getActualTypeArguments()[0];
	}
	
	public Class<T> getGenericClass() {
		return this.thisClass;
	}
}
